<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template counted_time_system</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp" title="Header &lt;boost/date_time/time_system_counted.hpp&gt;">
<link rel="prev" href="structboost_1_1date__time_1_1counted__time__rep.html" title="Struct template counted_time_rep">
<link rel="next" href="classboost_1_1date__time_1_1split__timedate__system.html" title="Class template split_timedate_system">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1date__time_1_1counted__time__rep.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1split__timedate__system.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template counted_time_system</span></h2>
<p>boost::date_time::counted_time_system — An unadjusted time system implementation. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp" title="Header &lt;boost/date_time/time_system_counted.hpp&gt;">boost/date_time/time_system_counted.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> time_rep<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html" title="Class template counted_time_system">counted_time_system</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">time_rep</span>                                    <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a6b57e5135906bbe329ce59d872833fb4"></a><span class="identifier">time_rep_type</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="identifier">time_rep_type</span><span class="special">::</span><span class="identifier">impl_type</span>                    <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ab3ca297ff273d32d33763ea88d98a174"></a><span class="identifier">impl_type</span><span class="special">;</span>              
  <span class="keyword">typedef</span> <span class="identifier">time_rep_type</span><span class="special">::</span><span class="identifier">time_duration_type</span>           <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a7a858cb91d870abb4e14cad01c0a1b81"></a><span class="identifier">time_duration_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">time_duration_type</span><span class="special">::</span><span class="identifier">fractional_seconds_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a4fc6d15e6a7a6aaad5f3b8f7c9dd3c0c"></a><span class="identifier">fractional_seconds_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">time_rep_type</span><span class="special">::</span><span class="identifier">date_type</span>                    <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1aaeaf0dd1319846bb9f6195e92d9daf4f"></a><span class="identifier">date_type</span><span class="special">;</span>              
  <span class="keyword">typedef</span> <span class="identifier">time_rep_type</span><span class="special">::</span><span class="identifier">date_duration_type</span>           <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a0a43ba8dcc2d12c62f9a5b0aaf7bef49"></a><span class="identifier">date_duration_type</span><span class="special">;</span>     

  <span class="comment">// <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#id-1_3_11_15_3_54_1_1_2_9-bb">public static functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ac657c20927bc103bb31a4306cfab56a0"><span class="identifier">unused_var</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a0801aa2648832a15056f09232b5a22dd"><span class="identifier">get_time_rep</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="identifier">date_time</span><span class="special">::</span><span class="identifier">dst_flags</span> <span class="special">=</span> <span class="identifier">not_dst</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ab69c17f97aa8e041d088bb33f86fbeab"><span class="identifier">get_time_rep</span></a><span class="special">(</span><span class="identifier">special_values</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1acad7559cd2c83e0312f64fbf0408653e"><span class="identifier">get_date</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_duration_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a839589d88449c5532372f975a681d78b"><span class="identifier">get_time_of_day</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ab34e1f8f0aeaec0ce6f9d96b9f2c4c7f"><span class="identifier">zone_name</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a3a6fc96918c6542a376d4340834ab046"><span class="identifier">is_equal</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ad001bc242bb4a8df0fb57e29011195fb"><span class="identifier">is_less</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a654a87ae159cbd0ff2a73488f2ebccea"><span class="identifier">add_days</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">date_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1aa1bcff55e7099a50d76950f406c52299"><span class="identifier">subtract_days</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">date_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a2e4bdcee2e62d302510d254cbcaaee03"><span class="identifier">subtract_time_duration</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ad5f1db5be8e705c9404ed4e0c457839b"><span class="identifier">add_time_duration</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">time_duration_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_duration_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1counted__time__system.html#doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a5054d9272c6bbe1bbb1e4946c159a598"><span class="identifier">subtract_times</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.11.15.3.53.4.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.11.15.3.53.4.4.2"></a><h3>
<a name="id-1_3_11_15_3_54_1_1_2_9-bb"></a><code class="computeroutput">counted_time_system</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ac657c20927bc103bb31a4306cfab56a0"></a><span class="identifier">unused_var</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a0801aa2648832a15056f09232b5a22dd"></a><span class="identifier">get_time_rep</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span> day<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span> tod<span class="special">,</span> 
             <span class="identifier">date_time</span><span class="special">::</span><span class="identifier">dst_flags</span> dst <span class="special">=</span> <span class="identifier">not_dst</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ab69c17f97aa8e041d088bb33f86fbeab"></a><span class="identifier">get_time_rep</span><span class="special">(</span><span class="identifier">special_values</span> sv<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1acad7559cd2c83e0312f64fbf0408653e"></a><span class="identifier">get_date</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> val<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_duration_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a839589d88449c5532372f975a681d78b"></a><span class="identifier">get_time_of_day</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> val<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ab34e1f8f0aeaec0ce6f9d96b9f2c4c7f"></a><span class="identifier">zone_name</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a3a6fc96918c6542a376d4340834ab046"></a><span class="identifier">is_equal</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ad001bc242bb4a8df0fb57e29011195fb"></a><span class="identifier">is_less</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a654a87ae159cbd0ff2a73488f2ebccea"></a><span class="identifier">add_days</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> base<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">date_duration_type</span> <span class="special">&amp;</span> dd<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1aa1bcff55e7099a50d76950f406c52299"></a><span class="identifier">subtract_days</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> base<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">date_duration_type</span> <span class="special">&amp;</span> dd<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a2e4bdcee2e62d302510d254cbcaaee03"></a><span class="identifier">subtract_time_duration</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> base<span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span> td<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_rep_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1ad5f1db5be8e705c9404ed4e0c457839b"></a><span class="identifier">add_time_duration</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> base<span class="special">,</span> <span class="identifier">time_duration_type</span> td<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">time_duration_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1counted__time__system_1a5054d9272c6bbe1bbb1e4946c159a598"></a><span class="identifier">subtract_times</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> lhs<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_rep_type</span> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1date__time_1_1counted__time__rep.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1split__timedate__system.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
